<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"> 

<h:head></h:head> 
<body>
 <h:form>
  
  		<p:commandButton value="Menu" action="#{menuBean.index}" ajax="false"/>
  
  </h:form>


<h:form  Id="form">  
  
 
  
     <p:dataTable id="transfBemBean" var="tfBem" value="#{transfBemBean.buscarTodos}" widgetVar="transfBemBean"      
          		 emptyMessage="Nenhum Registro Encontrado" paginator="true" rows="10"  
                 paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"  
                 rowsPerPageTemplate="10,20,30">  
        <f:facet name="header">  
            Pesquisas de Transferencia de Bem  
        </f:facet>
        
        <p:column id="codigoColumn" filterBy="#{tfBem.id}"   
                headerText="Codigo" footerText="Codigo"  
                filterMatchMode="contains">  
            <h:outputText value="#{tfBem.id}"/>
  
        </p:column>  
           
    
  		<p:column id="nomeColumn" filterBy="#{tfBem.nome}"   
                headerText="Nome" footerText="Nome"  
                filterMatchMode="contains">  
            <h:outputText value="#{tfBem.nome}" />  
        </p:column>
        
       	<p:column id="prefixoColumn" filterBy="#{tfBem.prefixo}"   
                headerText="Prefixo" footerText="Prefixo"  
                filterMatchMode="contains">  
            <h:outputText value="#{tfBem.prefixo}" />
        </p:column>
        
         <p:column id="placaColumn" filterBy="#{tfBem.placa}"   
                headerText="Placa" footerText="Placa"  
                filterMatchMode="contains">  
            <h:outputText value="#{tfBem.placa}" />
        </p:column>

   		<p:column id="chassiColumn" filterBy="#{tfBem.chassi}"   
                headerText="Chassi" footerText="Chassi"  
                filterMatchMode="contains">  
            <h:outputText value="#{tfBem.chassi}" />  
        </p:column>
        
        <p:column id="corColumn" filterBy="#{tfBem.cor}"   
                headerText="Cor" footerText="Cor"  
                filterMatchMode="contains">  
            <h:outputText value="#{tfBem.cor}" />  
        </p:column>
        
        
       <p:column id="anoColumn" filterBy="#{tfBem.ano}"
       			  headerText="Ano" footerText="Ano"
       			   filterMatchMode="contains"> 
				<h:outputText value="#{tfBem.ano}"/>
		</p:column>
		
		<p:column id="valorColumn" filterBy="#{tfBem.valor}"
       			  headerText="Valor" footerText="Valor"
       			   filterMatchMode="contains"> 
				<h:outputText value="#{tfBem.valor}"/>
		</p:column>
       
        <p:column>
			
			<f:facet name="header">
				<h:outputText value="Alterar" />
			</f:facet>	
			
			<h:commandButton  value="Alterar" action="#{tfBem.preparaAlterar()}" />
		
		</p:column>	
        
        
       

  </p:dataTable>        
      
</h:form>  
        

</body> 

</html>
